import axios from "@/http/http.js";
// 封装获取医疗机构——药品信息接口
export const institutionMedicationFindByInstitutionIdAPI = (data) => {
    return axios({
        url: '/institutionMedication/findIMByInstitutionId',
        method: 'post',
        data
    })
};

// 封装修改药品库存接口
export const institutionMedicationUpdateStockAPI = (data) => {
    return axios({
        url: '/institutionMedication/updateIMStock',
        method: 'put',
        data
    })
};

// 封装添加医疗机构药品接口
export const IMAddAPI = (data) => {
    return axios({
        url: '/institutionMedication/addIM',
        method: 'post',
        data
    })
};

// 封装删除医疗机构药品信息接口
export const IMDeleteAPI = (data) => {
    return axios({
        url: '/institutionMedication/deleteIM',
        method: 'put',
        data,
        headers: { "content-type": "application/x-www-form-urlencoded" }
    })
};